Skip to content

Conversation

Noremos
Copy link
Contributor

@Noremos Noremos commented Aug 19, 2025

No description provided.

@Noremos
Copy link
Contributor Author

Noremos commented Aug 19, 2025


for (FactoryInfo* info = factories->begin(); info != factories->end(); ++info)
GetPlugins<ITraceFactory> traceItr(IPluginManager::TYPE_TRACE, session.getPluginsString());
for (; traceItr.hasData(); traceItr.next())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This plain-C style syntax (for-loop iterator declared before the loop) makes sense only when iterator is needed after the end of loop. Why not:

for (GetPlugins<ITraceFactory> traceItr(IPluginManager::TYPE_TRACE, session.getPluginsString());
	traceItr.hasData(); traceItr.next())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line turned out to be too long. I didn't think about splitting the for operators

@Noremos
Copy link
Contributor Author

Noremos commented Aug 20, 2025

I added plugins printing to tracecmgr -LIST. Please review the changes

@hvlad hvlad self-assigned this Aug 20, 2025
Copy link
Member

@hvlad hvlad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I going to merge this PR after we resolve last issues with spelling/docs

@hvlad hvlad merged commit 2b1dc85 into FirebirdSQL:master Aug 21, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants